package com.sy.demo.service.impl;

import com.sy.demo.mapper.AccountMapper;
import com.sy.demo.model.Account;
import com.sy.demo.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
 * @author songyi
 * @date 2020/6/14 0014 21:38
 * @description
 */
@Service
@Transactional
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public List<Account> queryAll() throws Exception {
        return accountMapper.queryAll();
    }
}
